<table class="common-table">
	<thead>
		<tr>
			<th>ID</th>
			<th>修改对象类型</th>
			<th>修改对象的ID</th>
			<th>动作类型</th>
			<th>文章内容</th>
			<th>修改人</th>
			<th>修改时间</th>
			<th style="width:40px;">删除</th>
		</tr>
	</thead>
	<tbody>
		#{if actionLogs}
			#{list items:actionLogs, as:'actionLog'}
			<tr>
				<th>${actionLog.id}</th>
				<td><font class="important_1">${actionLog.objectType}</font></td>
				<td>${actionLog.objectId}</td>
				<td><font class="important_2">${actionLog.actionType}</font></td>
				<td>${actionLog.comment}</td>
				<td>${actionLog.createByAdmin?.username}</td>
				<td>${actionLog.createAt}</td>
				<td>
					<a href="javascript:deleteItem(${actionLog.id})" methods="DELETE" title="删除">
						<img class="minImg" src="@{'public/images/delete.gif'}">
					</a>
				</td>
			</tr>
			#{/list}
		#{/if}
		#{else}
		<tr>
			<td colspan="13">没找到结果。</td>
		</tr>
		#{/else}
	</tbody>
</table>
<div id="pager" style="font-size:1.3em;"></div>
<script language="javascript">
//初始化翻页控件。
function initialPager() {
	$("#pager").pager(
		{
			pagenumber: ${queryBean.currentPage}, 
			pagecount: ${queryBean.totalPage}, 
			totalcount: ${queryBean.totalQuantity},
			buttonClickCallback: PageClick
		}
	);
}
//翻页功能。
function PageClick(pageclickednumber) {
	$("#currentPage").val(pageclickednumber);
	reloadTable();
}
</script>